import { createStore } from "vuex";

//创建一个vuex实例
const store =createStore({
   state(){ 
    return{
           userInfo:{}
    }
   },
   mutations:{
    updatauserInfo(state,userInfo){
         state.userInfo = userInfo
         console.log(userInfo);
    }
   }
})

export default store